import base from '@/api/baseurl';
import request from '@/utils/request'


/**
 * Productlist下拉
 * @param {*} query
 * @returns  prod_code prod_name
 */
export function findProductlist(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/mlreportmanagement/findProductlist',
    method: 'get',
    params: query
  })
}


/**
 * Productlist下拉
 * @param {*} query
 * @returns  proj_code proj_name
 */
export function findProjectlist(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/mlreportmanagement/findProjectlist',
    method: 'get',
    params: query
  })
}


/* ML-内部成本-单项明细-表头 */
export function findHeader(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/mlreportmanagement/findMLInternalCostHeader',
    method: 'get',
    params: query
  })
}

/**
 * ML-内部成本-单项明细-数据
 * @param {*} query  s_date e_date  prod_code proj_code
 * @returns
 */
export function findlistData(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/mlreportmanagement/findML_InternalCostlist',
    method: 'get',
    params: query
  })
}
